add double field func