remove assert on error condition