simplify matrix apply methods