change var_type to vartype