mmref_compare updated cast to dcast