finished implementing compute native_orig_sequence function