extrapolate $n variable in tag