changed parsing method for glossary