combine two ifs into one