remove deprecated code from source example