Effect of extra dimensions on gauge coupling unification