made struct a type definition