fixed a variable name to distinguish between step (object) and step number (integer)