tiny optimizations