change indentation and edit serialRead func