setting the timestamp and sequence should be outside of the fields for loop