add Failed check