change _w to double