func additions for matrixlib