clean up histogram metadata output