change if of check root