added temporary output function