(refactor) removed dead code from parser