added registers to ifs