correct timeout condition