swtich statment for multiple processes set