rebracketed code to knock off ~150ns per function call