removed unnecessary code from examples