wth were I smoking, double ifs removed