starting to write parsing logic