casing the $Model and $LinkMode