fixed compiler warning implicit declaration for sendFinal()