change location algo