added a function to matrix3