connect to depth as well
nesting fix