how to use histogram