handle code list