output method from one function