working on codec