switch to use double as input for the dll