alignment rewrite