created atm app functions