changed root condition