moved a method up in Parser (didn't change any code)