cleanData function added