removed old assert function