refactoring matrix
refactoring attrib