change back to array