add a new function to visualize laser beam