fixed parsing of code