now invoking the assertion method in a better way