fixed NxN to NxM