fixed err with incomplete structs