update avoid usage of bsta_histogram