changed debug mode