removed code optimizations.