final version of ParseData