check for lat and lgn