added number of loops and implemented normalized histogram in evaluation model