improve assert