added the missing declarations of getM and getN functions