assert function added