added template evaluatuation