add switch to condition