use return in switch instead of no break