changed the example code, so it does work now too