modified convertVar to look for dic decalarations, single or multilined