adding ifs