update ResourceModel