Histogram

temporary hack to fix problem with fptr