rearranged ip address lookup