beginning histogram stuff