working on struct compare. must have some messed up ptrs somewhere