corrected bug, step++ in the source