more key optimization