changes made for put and delete methods