changed arrays of type object to type any