finishing the output function