struct codes