adding flag for delete outdated