improved hb script #8