add faster code for better performance.