tiny rewrite