changed timeout condition