improved assert.