fixed lookup_latitude, added remove_duplicates