remove extra case in main loop