use ifHighSpeed instead of calculation