update series model to have an array of number isntead of array of object