rename logM to logm