check if IF statement causes latency