modified the parsing function
Merge pull request #1 from rayjsmets/ray

modified the parsing function