The role of uncertainty in cognitive change