some loop debug added