fixed nesting rule violation