use condition when there is no task