remove unused location var