call output function