if construct changed into two ifs. 
7318303671  cycles 
2.175597441  seconds time elapsed