add running time check