Code tuning: using temp variable speedup the code execution.