convert to switch on phrase functions