change object as array