switching between two procs works