added www update function