eliminating usecless code from parsehelper.py