Removing use of zip in getDepth