added second status check