change qcode to token