added location analysis