helpers for histogram with target