generating gcode lines