fixed further typos from rewrite