use a separate variable to iterate over time