code optimized.
code optimized.