making old example work