fixing var setting