updating get_addresses.c (but it's still broken)