adding ordered array