changed two elifs to ifs