some primitive optimizations