metody do aghmatrix