sequence interpolation and switching