add cleanup function
add clean data instead of cleaning data in line