added parseToTuples changes, added function callback instead of function create in a loop