including connection2massindices in Model