changed method to avoid dublicates in modified date