The function of value in self-regulation