script to clean temp data