added mac modified check