fixed the struct def