new implementation: time limit exceed