convert to PrintWriter from BUfferedWriter