next_in_sequence implemented