clean up processing template