script for perfoming data clean