added code for projector