change the location algorithm.