tapestop: changed sleep from float to double