removed excess code from example