- removed last occurrences "matrix" from the code