added tacify if and test