implemented KeyRef into matrix cross section