added methods to linalg