added debug mode 2