inital switch-over algorithem