created object from arrays