added functions to Mat4