refactor init statement