added a message to an assert function