more changes debugging nesting issue