deposit functionality edited