use histogram