add alternating and stable ordering