scaling locally