fix the mock delegate to conform to the delegate protocol