Adding one thing for the correct functionaly of this loop