support for negative steps in for loop.