updated bank functions