added struct to fix error