moving scale functions out of facets