add assert just in case