the ifs are not needed