changed else ifs to ifs