added patch and copy methods