odmmi-function changed to return absolute maximum value, not maximum value