check before withdrawing