added laser controller code