avoid loop

using lsb instead op loop for better performance.

No functional changes.