changed assertion to be easier to read