cleaned up the example