minor changes for rangeinMM