The loop is correct