problems with switch clause

bactype switch is not working correctly, ecoli is returned/assumed even if flag is barkeri ...?...