Check root function