prepared internal functions for NEW Version HROOT