moved histogram method to IEM