by controlling the distance between laser head and workpiece