rename a patterns file