trying a watch function