added tuple unpacking in for loops