rewrite for 5