replace repeatEval with constant