controlling the laser