adding function root