using condition is faster