modified evaluation function