convert multiple return statements to case