remove call to new avro API