shallow_nesting implemented