update with model