individual and joint histogram functions finished