correct ifs