add switch statement