implemented old files removal feature