refactor(replace var): replace vars with consts.