initial code for checking balance