changed if-else block for switch