implement seq_num assignment