made a method outside