small cleanup of patch