refactoring to UART
refactoring to UART