fixed last commit: set min and max of eval