initialize codes

created by eric xu