The use of switching two active function