prepared for files, destructors used