rewrote structs, program working again.