do something when a file modified