put the frequent one first