made a select case thing for modes