modified data_clean functions
revised
done