some (micro-) optimizations