fix examples that were using deprecated methods