started working on decoder