all them optimizations