printing pending tasks