add structure code