changed update task to async