fixed variable

fixed @where var and better documentation