better detection of salt modes