Definition switching segController skeleton code