refactor var -> public