changed the array format