removed unecessary default switch case