add condition when watch changed file