finding a good ms value