changed d_seq handling