fixed nestes closures