fix update bug surrounding pointers/structs