v4:optimize the order of the contacts