primitive histogram