changed deposit function, not testeted"