added assertion check into exception concept