implement maxsolcml()