added error for mutation of a do variables inside a loop