changed matrix mul method to make more sense