this macro was seldom used and up to these lines always with n==m