changed separate asserts into one