use cn from vars