added commnets for the loop