gain and its relationship to mids