extract location