use switch statement
remove unnecessary variable assignment
refactor