change nmkpq to mnkpq