FIXED: matrix function not imported