method structs