added preliminary version of the parsing function