init: set variant code