optimizations, styling, readability