modified to remove old backups