optimize the style