added serial input length check