removal of unused default in switch