add output from ReplaceLoop