New algorithm working when i 睡不着