check loop