rm check for n > m