added location-function

doesnt work yet