model updating works