add rank for triple
merge triple conflicts