changed a couple of examples to make examples work