update scaling at edges