detects any changes in directory