loop structure for effin