turned data into an array