recompiled docs
optimized if statements