passing series index inside data object