code initialize