moved return statement in deposit