create object for each in x