Heksor: the central nervous system substrate of an adaptive behaviour