forgot to remove undefined function declarations in decoder