moved nested depth check up 1