structs now working