added some error evaluation