histogram search working now