many optimizations concerning evaluation