assert function is added