implemented not to update task if its completed