corr while (still todo)