filling in the parsing functions