fix typos
split code