force return when in loop