updated with function for data.clean