adapter pattern
fix build error