fix mod_coordsAndSteps to pass its pointer