changed the code back to no-struct setup. getting segfaults. will fix later.