before changing the style