udpated patch and delete