update bezier sample for the new interface