added false webcam code to refactor