rewrite the style of nodes