stopped nesting function for parsedata