The adaptive functions of self-evaluative psychological mechanisms