rewrite the new-spec