save patches array after creation