debugging mode inserted