Change longs to doubles