made performance improvements