finished encoding and decoding

blah