change double to void return to functions that do return void. At least, it compiles