Issue #70 switch if-else functions