- fixing example, was still using the old api