commited cashed matrix funcs