checking if I can reduce CPU by switching to thread