print element in order