initialize codes