adding check that the expected data is present