implemented evaluation and histogram