added struct snippet