added file deletion code