moved inline, removed if: faster to add zero than to take a branch!