adding ordered flag