modified for new HROOT-0.8