finished decoding. need to test