replaced hell of "if elase" to "switch case"