update switch sample
add for sample