break up create deposition into smaller functions
bug fixes in create deposition task