used previous account variables to define balance
repeat of last commit for deposit function