fixed HBtimes error and plotting averaged HB