be careful. The histogram is not working so far.