remove unneeded info from patch