now to find out what is wrong with my histogram generator