refactoring: remove useless code