added check on 2 attempt