model name and key optimization