simplifying 'Bucklin()'
optimization tweak
cast is unnecessary
moving a declaration closer to its use