added initial ifs.