revising example
some cleanup