removed unneeded code from parser