transform with patch