initialize location before loop