infinity rewrite loop clear