check with debug mode