assert on debug mode