not working histogram