update example to merge 3 modes