keep assert, but add a check