better histmed list formatting