working on preprocessing for decoder