add series function