better unpacking of sequence
improving error message