remove useless code
define var before use it