add double support