re-use of location variable