this tack place due to the electron flow in the aromatic ring when an electron done atom or groups added to the ring or the group that added not having an steric effect with the ring as in triethyl aniline in this compound the electron density decrease
while in chloro or methyl benzene the density increase due to the ring absorb the electron to it