add switch case to handle calculat functions