improve the preformance for simple type