modfiy the struct