refactor for online code generate