got the decoder working