removed unnecessary global reference to $facets.