working decoder