convert scaling to closure