a sample loop