refactoring, extend node from matrix for easy to use