changing this in to a assert