using put method for updates.