fix use of data