fixed if statements that should have been elif statements.