evaluation function and print stats