wrote sequence and references