modified maxsep and robsep to make them more robust