added computeMatrix wrapper