added extractFacets function