gaia compare algorithm go a step further.