made MMP support with ranking