change object to array