fixed index in switch statement