update put and delete methods