changed to malloced structs, gives me a weird error