fixed elif statement