improve the initialization of the var values

improve the initialization of the var values