added checking file modified time