updated to test depth 0