deposit functionality working