add data cleaning functions