fixing .rewrite() args