compiles runs but does not decodes
fix the loop in finish decoding