add result output method