imagine I have an encoded stream and I want to decode it