check result in loop