removed unused code from example