getM implemented