my update/calculate widget not working properly