better expectation checking