assertions, fixed compile warning