now use depth to control cutting rather than equal in dimension