A mechanism of transformational plasticity