adapting example to new method names