changed inline text from switch/case to lookup table