removed unused code, fixed example