adjusted floats->ints and doubles-> longs