loop debug