renamed loop variable to make it clear it's an index