added function checker for watcher