add wasCalled method