adding asserts