get loop right