switch to an assert?