change elifs to ifs in main