extracting location