avoiding assertion errors