modify swich statment in typebuilder