fix typos and ref