Differential effects of distraction on thinking