update usart functions