inital version of non joint histogram