build code structure