added returnRoot