add conditional for series and subseries