output type double
now can write to file