updeted "if" stat