solved the problem of CPU spend