improve updating tasks