swicth for hb computations (duplication)