refining the parsing