get your ifs right