[refactor] add assert statement.