some matrix functions now