calculate entry_sequence_number instead of output_sequence_number