handle odd cases with zero length sequences