n and m wrong way round