regroup some ifs