change size parameters to use 64-bit longs