converted to mat-vec products