performance optimizations..