improve asserts.