tweak assert to match what it says it does