Remove unnecessary call to matrix