add double calculate sample