removed unnecessary method outside main