cleanup of file