added functionality for deposit