correction on time out logic