changing up the parser to pass objects instead of strings