histogram proof of concept