using assertion instead of NeuroLexException