performance improvements
added comment