loop with correct/incorrect dataset