updating tasks