make sure all roots are obtained