trying to fix nesting issue