remove nesting