Some auxiliary functions for deposit defined