adding check for serial rx buffer size