clean sample data and tweaked tempalte