use sequence to compute reference