updated so we get the first address instead of the last address for broadcast