added assert.