conditinally update the lat and long