replace var with const