change update method now that we're passing into update an entity object