rename resize code
fix typos