add a method,add asserts