- some optimizations