Rewrite compontents