changed the delay before waiting for incoming data from 40 to 25