better splice example