process data to instances