adaption of the examples