update program for dealing with location update.