small optimization to remove a divide