failing, try to using histogram method