added timelapse switch case