Development of self-regulation in context