add input_double and output_double