edit location code