adopted example to new API