fix up basic core.matrix usage