added functions to parse collected data