minimized assignment activity in for loops