changing things to array structs