conditionally add details to sequences table