add condition if no task available