struct in stead of array