test function and add isWaching