unfinihsed hisogram code