put things back in pattern file