[REFACTOR]
- move var declaration to top