simplifying integer library