removed "depth" code (legacy)