styles rewrite