debugged second nest