example code compile fix