- made transition on for loops to lambda functions