removed legacy "depth" code