add close method to field data