add function to clean temp files