Cognition and environment : functioning in an uncertain world