added console.log statement for location