adding structure code