made deposit into it's own function