correcting decode syntax errors