changed to simple pairs