deposit check function added