added eoflens to discriminate whether decoding was completed