correcting asserts