support for doubles and longs