added MNK loop order