ENH use struct assignement