implemented get PositionUsingHistogram