renamed $object to $model