updating pending tasks