converted patch.rs