fix nesting under declaration error