corrected the placing of the timeout