edits to patch