model: added updateAttributes