fixed if..elif statement