template scaling, bounds changed