add scan variable but seems does not work